package com.so206.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class PutForward implements Serializable {
    private Long id;

    /**
    * 操作人
    */
    private Long optUser;

    /**
    * 创建时间
    */
    private Date optTime;

    /**
    * 打款流水号
    */
    private String psd;

    /**
    * 打款说明
    */
    private String title;

    /**
    * 收款人账号
    */
    private String putId;

    /**
    * 收款人真实姓名
    */
    private String putName;

    /**
    * 打款金额
    */
    private BigDecimal price;

    /**
    * 状态:1.失败,2.成功
    */
    private Integer status;

    /**
    * 失败原因
    */
    private String errorInfo;

    /**
    * 流水号
    */
    private String trano;

    /**
    * 打款方式:1.微信,2.支付宝
    */
    private Integer pType;

    /**
    * ip
    */
    private String ip;

    /**
    * wx pay str
    */
    private String str;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOptUser() {
        return optUser;
    }

    public void setOptUser(Long optUser) {
        this.optUser = optUser;
    }

    public Date getOptTime() {
        return optTime;
    }

    public void setOptTime(Date optTime) {
        this.optTime = optTime;
    }

    public String getPsd() {
        return psd;
    }

    public void setPsd(String psd) {
        this.psd = psd;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPutId() {
        return putId;
    }

    public void setPutId(String putId) {
        this.putId = putId;
    }

    public String getPutName() {
        return putName;
    }

    public void setPutName(String putName) {
        this.putName = putName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public String getTrano() {
        return trano;
    }

    public void setTrano(String trano) {
        this.trano = trano;
    }

    public Integer getpType() {
        return pType;
    }

    public void setpType(Integer pType) {
        this.pType = pType;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getStr() {
        return str;
    }

    public void setStr(String str) {
        this.str = str;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", optUser=").append(optUser);
        sb.append(", optTime=").append(optTime);
        sb.append(", psd=").append(psd);
        sb.append(", title=").append(title);
        sb.append(", putId=").append(putId);
        sb.append(", putName=").append(putName);
        sb.append(", price=").append(price);
        sb.append(", status=").append(status);
        sb.append(", errorInfo=").append(errorInfo);
        sb.append(", trano=").append(trano);
        sb.append(", pType=").append(pType);
        sb.append(", ip=").append(ip);
        sb.append(", str=").append(str);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PutForward other = (PutForward) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOptUser() == null ? other.getOptUser() == null : this.getOptUser().equals(other.getOptUser()))
            && (this.getOptTime() == null ? other.getOptTime() == null : this.getOptTime().equals(other.getOptTime()))
            && (this.getPsd() == null ? other.getPsd() == null : this.getPsd().equals(other.getPsd()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getPutId() == null ? other.getPutId() == null : this.getPutId().equals(other.getPutId()))
            && (this.getPutName() == null ? other.getPutName() == null : this.getPutName().equals(other.getPutName()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getErrorInfo() == null ? other.getErrorInfo() == null : this.getErrorInfo().equals(other.getErrorInfo()))
            && (this.getTrano() == null ? other.getTrano() == null : this.getTrano().equals(other.getTrano()))
            && (this.getpType() == null ? other.getpType() == null : this.getpType().equals(other.getpType()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getStr() == null ? other.getStr() == null : this.getStr().equals(other.getStr()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOptUser() == null) ? 0 : getOptUser().hashCode());
        result = prime * result + ((getOptTime() == null) ? 0 : getOptTime().hashCode());
        result = prime * result + ((getPsd() == null) ? 0 : getPsd().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getPutId() == null) ? 0 : getPutId().hashCode());
        result = prime * result + ((getPutName() == null) ? 0 : getPutName().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode());
        result = prime * result + ((getTrano() == null) ? 0 : getTrano().hashCode());
        result = prime * result + ((getpType() == null) ? 0 : getpType().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getStr() == null) ? 0 : getStr().hashCode());
        return result;
    }
}